package com.cai310.lottery.service.lottery.jczq.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cai310.lottery.dao.lottery.jczq.JczqSingleSchemeDao;
import com.cai310.lottery.entity.lottery.jczq.JczqSingleScheme;
import com.cai310.lottery.service.lottery.jczq.JczqSingleSchemeEntityManager;

@Service("jczqSingleSchemeEntityManagerImpl")
@Transactional
public class JczqSingleSchemeEntityManagerImpl implements JczqSingleSchemeEntityManager {

	@Autowired
	protected JczqSingleSchemeDao jczqSingleSchemeDao;
	@Override
	public JczqSingleScheme saveJczqSingleScheme(JczqSingleScheme entity){
		return jczqSingleSchemeDao.save(entity);
	}

	@Override
	public JczqSingleScheme getJczqSingleScheme(Long id) {
		return jczqSingleSchemeDao.get(id);
	}
}
